package Chapter06;

import java.util.Scanner;

public class Zuoye13 {
    //13.定义一个double类型的数组，长度是8，求数组中所有数的积
    public static void main(String[] args) {
        Scanner input =new Scanner(System.in);
        double array[] =new double[8];
        double sum=1.0;
        for (int i=0;i<array.length;i++){
            System.out.println("请输入第"+(i+1)+"个数：");
            array[i] =input.nextDouble();
            sum*=array[i];
        }
        System.out.println("所有得数乘积是:"+sum);
    }
}
